<?php
$this->breadcrumbs = array(
    'MLM System',
    'Transaction' => array('list'),
    'Approval Transaction',
);

//action list
array_push($this->menu, array('label' => 'List of Transaction', 'url' => array('list')));
?>
<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/success.png">
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>
<?php if (Yii::app()->user->hasFlash('error')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>
<div class="flat_area grid_16">
    <h2>Approval Transaction</h2>
</div>
<div class="box grid_16 round_all">
    <h2 class="box_head grad_colour">&nbsp;</h2>
    <a href="#" class="grabber">&nbsp;</a>
    <a href="#" class="toggle">&nbsp;</a>
    <div class="toggle_container">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'ecom-transaction-form',
            'enableAjaxValidation' => false,
            'htmlOptions' => array('enctype' => 'multipart/form-data'),
                ));
        ?>
        <div class="block">
            <?php echo $form->errorSummary($model); ?>

            <?php echo $form->labelEx($model, 'transaction_code'); ?>
            <?php echo $form->textField($model, 'transaction_code', array('size' => 20, 'maxlength' => 50)); ?>
            <?php echo $form->error($model, 'transaction_code'); ?>

            <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span>Approve</span></button>

        </div>

        <?php $this->endWidget(); ?>

        <!-- form -->
    </div>
</div>